using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Story_0_Ctrl : Story_Base
{
    public AudioSource bgm_Audio;

    public override void Start()
    {
        PlayerPrefs.DeleteKey("MapCount");
        Player_Ctrl.instance.charactor_Ctrl.mp = 0;
        base.Start();
        UIManager.instance.SwtichMaskPerformance(true, 0, () => { UIManager.instance.SwtichMaskPerformance(false, 2); });

        
    }
    public void Finish()
    {
        UIManager.instance.SwtichMaskPerformance(true, 1, () => {
            LoadScene_Manager.instance.LoadScene("Level_3");
        });
    }
    public void PlayBgm()
    {
        if (!bgm_Audio.isPlaying)
        {
            bgm_Audio.Play();
        }
    }
}
